const jdbcOptions = {
	name: 'foot',
	path: '_doc/foot.db',
};

function openSqllite()
{
	let restBoolean;
	let options = jdbcOptions;
	options.success = function(e){
		console.log("open sql is success");
		restBoolean = true;
	};
	options.fail = function(e){
		console.log("open sql is fail",e);
		if(e.code == -1402)
		{
			restBoolean = true;
			console.log("sadsa,",restBoolean)
			return;
		}
		else{
			restBoolean = false;
		}
	}
	console.log(restBoolean);
	return restBoolean;
}

module.exports = {
	openSqllite: openSqllite,
}